const funclist = require('../routeBase')
module.exports = [
  {
    url: '/erp/auth/index',
    type: 'post',
    response: (config) => {
      return {
        code: 0,
        data: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9',
      }
    },
  },

  {
    url: '/erp/auth/getInfo',
    type: 'get',
    response: (config) => {
      return {
        code: 0,
        data: {
          name: '管理12',
          id: '1001',
          roles: ['管理员', '文员'],
          funclist,
        },
      }
    },
  },

  {
    url: '/erp/auth/logout',
    type: 'post',
    response: (_) => {
      return {
        code: 0,
        data: 'ok',
      }
    },
  },
]
